/**
 * @author Mirko Bordjoski
 */	
package org.piwik.requests
{
	/**
	* The PiwikRequest class holds the data used for sending requests to Piwik Analytics.
	*/
	public class PiwikRequest extends Object
	{
		
		/**
		 * @private 
	 	*/
		public static const MODULE_METHOD:String = "?module=API&method=";
		
		/**
		 * @private 
	 	*/
		public static const SITE_ID:String = "&idSite=";
		
		/**
		 * @private 
	 	*/
		public static const PERIOD:String = "&period=";
		
		/**
		 * @private 
	 	*/
		public static const DATE:String = "&date=";
		
		/**
		 * @private 
	 	*/
		public static const FORMAT:String = "&format=";
		
		/**
		 * @private 
	 	*/
		public static const FILTER:String = "&filter_limit=";
		
		/**
		 * @private 
	 	*/
		public static const TOKEN:String = "&token_auth=";
		
		/**
		 * @private 
	 	*/
		public static const FORMAT_RETURN:String = "&format=";	
		
		/**
		 * @private 
	 	*/
		public static const PRETTY_DISPLAY:String = "&prettyDisplay=";
		
		
		
		/**
		 * Name and method of Piwik Analytics module. 
	 	*/
		public var moduleMethod:String;
		
		/**
		 * Period. Can be "day", "week", "month" or "year".
	 	*/
		public var period:String;
		
		/**
		* You can use shortcut like 'last30' or just pass date in format YYYY-MM-DD.
		* @see org.piwik.logic.PiwikFormatter
		*/ 
		public var date:String;
		
		/**
		* Limit the number of rows.
		*/ 
		public var filter:uint;
		
		/**
		* This property is set when some of the requests methods are called. Uniqe for every request. 
		*/ 
		public var requestType:String = "";
		
		/**
		* The PiwikRequest class holds the data used for sending requests to Piwik Analytics.
		* 
		*@param		 
		*/
		public function PiwikRequest($moduleMethod:String = "", $period:String = "", $date:String = "", $filter:uint = 50, $requestType:String = "")
		{
			moduleMethod = $moduleMethod;
			period = $period;
			date = $date;
			filter = $filter;
			requestType = $requestType;
			
			super();
		}
		
	}
}